package br.edu.ufcg.lsd.wbis.ui.client.ui.loggedin;

import br.edu.ufcg.lsd.wbis.ui.client.ui.loggedin.util.RefresherKiller;

import com.gwtext.client.widgets.portal.Portlet;

/**
 * @author Renato Miceli
 */
public abstract class AbstractUserInfoPortlet extends Portlet implements UserInfoPortlet {

	private final UserInfoRefresher timer;

	public AbstractUserInfoPortlet() {
		timer = new UserInfoRefresher(this);
		this.addListener(new RefresherKiller(timer));
	}

	protected void defaultSchedule() {
		timer.defaultSchedule();
	}

}
